﻿@model Ymca.Web.Models.Account.LoginViewModel

@{
    ViewBag.Title = "LogIn";
}
<div class="page-header">
    <h3>Sign in</h3>
</div>

@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <div class="control-group">
        <label class="control-label" for="UserName">User Name</label>
        <div class="controls">
			@Html.TextBoxFor(model => model.Username, new { placeholder = "User name" })
			@Html.ValidationMessageFor(model => model.Username, null, new { @class = "text-error" })
		</div>
    </div>
    
    <div class="control-group">
		<label class="control-label" for="Password">Password</label>
		<div class="controls">
			@Html.PasswordFor(model => model.Password, new { placeholder = "Password" })
            @Html.ValidationMessageFor(model => model.Password, null, new { @class = "text-error" })
		</div>
	</div>
    
    <div class="control-group">
        <label class="checkbox" for="RememberMe">
            @Html.CheckBoxFor(model => model.RememberMe) Remember Me
        </label>
    </div>
    
    <p>
		<input type="submit" class="btn btn-primary" value="Log In" />
	</p>
}